package com.seata.cloud;


import com.seata.cloud.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;

@FeignClient(value = "seata-account-provider",path = "/account")
public interface AccountFacede {

    /**
     * 扣减账户余额
     */
    @RequestMapping("/account/decrease/{userId}/{money}")
    Result decrease(@PathVariable("userId") Long userId, @PathVariable("money") BigDecimal money);
}
